<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="content">
<head>
<title>�ͻ��б�</title>
</head>
<body>
	<div layout:fragment="content">
	<table style="width: 100%;" data-bind="with:InventoryModel">
	<tbody>
				<tr>
					<td class="td_form01">订单编号:</td>
					<td class="td_form02">
						<input type="text"data-bind="value:orderNo" /></td>
					<td class="td_form01">批次号:</td>
					<td class="td_form02">
						<input type="text"data-bind="value:batchNumber" /></td>
					<td class="td_form01">运单号:</td>
					<td class="td_form02">
						<input type="text"data-bind="value:transferNumber" /></td>
				</tr>
				<tr>
					<td class="td_form01">推送时间</td>
					<td class="td_form02">
						<input type="text" name="startDate" id="startDate" data-bind="datetimes:start,date_format:'yyyy-MM-dd'">
                		<span>&nbsp;&nbsp;-</span>
                		<input type="text" name="endDate" id="endDate" data-bind="datetimes:end,date_format:'yyyy-MM-dd'">
                	</td>
					<td class="td_form01"></td>
					<td class="td_form02"></td>
					<td class="td_form01"></td>
					<td class="td_form02"></td>
				</tr>
				<tr>
					<td colspan="3" class="td_form01 text-center"><input
						type="button" class="buttonface" value="清空"
						data-bind="click:$root.empty" /></td>
					<td colspan="3" class="td_form01 text-center"><input
						type="button" class="buttonface" value="查询"
						data-bind="click:$root.search" />  
					</td>
				</tr>
				<div class="list_page">
					<table style="width: 100%;" border="1" cellspacing="0">
						<thead>
							<tr>
								<th class="td_top">序号</th>
								<th class="td_top">清单号</th>
								<th class="td_top">模式代码</th>
								<th class="td_top">订单编号</th>
								<th class="td_top">支付单号</th>
								<th class="td_top">运单号</th>
								<th class="td_top">批次号</th>
								<th class="td_top">进出口标志</th>
								<th class="td_top">电商企业海关代码</th>
								<th class="td_top">操作类型</th>
								<th class="td_top">发送状态</th>
								<th class="td_top">操作</th>
								<th class="td_top">清单回执</th>
							</tr>
						</thead>
						<tbody id="data" data-bind="foreach:DataGrid.DataRows">
							<tr>
								<td data-bind="text:$index()+1" style="text-align: center;"></td>
								<td data-bind="text:guid" style="text-align: center;"></td>
								<td data-bind="text:billMode" style="text-align: center;"></td>
								<td data-bind="text:orderNo" style="text-align: center;"></td>
								<td data-bind="text:payNumber" style="text-align: center;"></td>
								<td data-bind="text:transferNumber" style="text-align: center;"></td>
								<td data-bind="text:batchNumber" style="text-align: center;"></td>
								<td data-bind="text:ieType" style="text-align: center;"></td>
								<td data-bind="text:cbeCode" style="text-align: center;"></td>
								<td data-bind="text:modifymark" style="text-align: center;"></td>
								<td data-bind="text:status" style="text-align: center;"></td> 
								<td style="text-align: center;width: 77px">
									<input type="button"class="pure-button pure-button-primary" value="修改"data-bind="click:$root.update" /> 
									<input type="button"class="pure-button button-warning" value="重推"data-bind="click:$root.send" />
								</td>
								<td style="text-align: center;">
									<input type="button"class="pure-button button-secondary" value="查看"data-bind="click:$root.look" />
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</tbody>
	</table>
		<div id="popbg" style="display: none;">
			<table class="table table-hover" style="width: 100%; height: 250px;" data-bind="with:InventoryModelLayer">
				<tr>
					<td class="td_form01">
						<label>清单号 ：</label>
					</td>
					<td class="td_form02">
						<input type="text"data-bind="value: guid" />
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>模型代码 ：</label>
					</td>
					<td class="td_form02">
						<input type="text"data-bind="value: billMode" />
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>订单标号</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind = "value:orderNo"/>
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>支付单号</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind="value:payNumber"/>
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>运单号</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind="value:batchNumber"/>
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>批次号</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind="value:transferNumber"/>
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>进出口标志</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind="value:ieType"/>
					</td>
				</tr>
				<tr>
					<td class="td_form01">
						<label>电商企业海关代码</label>
					</td>
					<td class="td_form02">
						<input type="text" data-bind="value:cbeCode"/>
					</td>
				</tr>
				<tr >
					<td class="td_form02 text-center" colspan="4">
						<button class="saveBtn " data-bind="click:$root.save">
							<i class="iconSave"><img src="/images/ic05.png" alt=""></i>
							保存
						</button>
						<button class="popClose" data-bind="click:$root.Cancel"> 
							<i class="popIcon"><img src="/images/ic06.png" alt=""></i>
							关闭
						</button>
					</td>
				</tr>
			</table>
		</div>
		<div id="recepipt" style="display: none;">
			<table class="table table-hover" style="width: 100%; height: 250px;" data-bind="foreach:ReceiptModelLayer">
				<tr>
					<td class="td_form02">
						<textarea style="height: 500px; width: 575px;"data-bind="value:content"></textarea>
					</td>
				</tr>
			</table>
			<div style="padding-left: 42%;">
				<td class="td_form02 text-center" colspan="4">
						<button class="popClose" data-bind="click:$root.Cancel"> 
							<i class="popIcon"><img src="/images/ic06.png" alt=""></i>
							关闭
						</button>
				</td>
			</div>
		</div>
	<div th:include="pager :: pager"></div>
	</div>
</body>
</html>